package com.mijie.homi.search.util;



import java.util.Properties;

import javax.sql.DataSource;

import org.apache.ibatis.datasource.DataSourceFactory;
import org.logicalcobwebs.proxool.ProxoolDataSource;

public class ProxoolDataSourceFactory implements DataSourceFactory {

	protected ProxoolDataSource dataSource;

	public ProxoolDataSourceFactory() {

	//	this.dataSource = new ProxoolDataSource("adpool");
		
		// alias参考proxool.xml 中标签<alias>的值
		 dataSource = new ProxoolDataSource("maindb");  

	}

	@Override
	public DataSource getDataSource() {

		return this.dataSource;

	}

	@Override
	public void setProperties(Properties properties) {

	}

}